import User from './models/User';
import Voucher from './models/Voucher';
import SubjectService from './serives/SubjectService';
import SequelizeClient from './sequelizeclient';
let sequelize = SequelizeClient.getInstance();

import Subject from './models/Subject';
import VoucherService from './serives/VoucherService';
const Init = async () => {
  Subject.subjectInit();
  Voucher.init();
  Subject.getVoucherReportBySubjectCode({ subjectCode: ['001002', '001001'] });
  sequelize.sync(); //放在表的初始化下面
  new SubjectService();
  new VoucherService();
};
export default { Init };
